package com.example.demotest.service;

import com.example.demotest.pojo.Complaint;
import com.example.demotest.pojo.dto.ComplaintDto;
import com.example.demotest.pojo.dto.ComplaintUpdateDto;

import java.util.List;

public interface IComplaintService {
    Complaint submitComplaint(Integer userId, ComplaintDto complaintDto);

    List<Complaint> getComplaintsByComplainant(Integer userId);
    List<Complaint> getComplaintsByDefendant(Integer userId);

    Complaint getComplaintsByComplaint(Integer complaintId);

    List<Complaint> getComplaintsByProduct(Integer productId);
    List<Complaint> getAllComplaints();
    void adminUpdateComplaint(ComplaintUpdateDto updateDto);
}
